package com.example.havi.ui.chatitem;

import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;

import com.example.havi.R;

public class BaseChatViewHolder extends RecyclerView.ViewHolder {

    public TextView timeStampView;
    public ImageView userAvatarView;
    public View bubbleLayout;
    public TextView usernickView;

    public ProgressBar progressBar;
    public ImageView statusView;

    public TextView ackedView;
    public TextView deliveredView;

    public BaseChatViewHolder(View itemView) {
        super(itemView);
        timeStampView = (TextView) itemView.findViewById(R.id.timestamp);
        userAvatarView = (ImageView) itemView.findViewById(R.id.iv_userhead);
        bubbleLayout = itemView.findViewById(R.id.bubble);
        usernickView = (TextView) itemView.findViewById(R.id.tv_userid);

        progressBar = (ProgressBar) itemView.findViewById(R.id.progress_bar);
        statusView = (ImageView) itemView.findViewById(R.id.msg_status);
        ackedView = (TextView) itemView.findViewById(R.id.tv_ack);
        deliveredView = (TextView) itemView.findViewById(R.id.tv_delivered);
    }
}
